package com.hy.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hy.entity.dto.DetectTaskSearchDTO;
import com.hy.entity.pojo.DetectTask;
import com.hy.entity.vo.DetectTaskVO;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface DetectTaskMapper extends BaseMapper<DetectTask> {

    List<DetectTaskVO> getTasksByDTO(@Param("page") Page<DetectTask> taskPage,@Param("dto") DetectTaskSearchDTO dto);
    @Update("UPDATE detect_task SET task_count = task_count + 1 WHERE task_id = #{id}")
    Integer addOne(Integer Id);
}
